package com.imc.api.attence.dao.repository;

import com.imc.api.attence.pojo.Leave;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/*
 * 类描述：请假repository
 * 开发者：tanweiping
 * 创建日期：2018/10/28 20:47
 */
@Repository
public interface LeaveRepository extends JpaRepository <Leave, Integer>, JpaSpecificationExecutor <Leave> {

    /*
     * YT  2018/10/28 20:47
     * 方法描述：根据主键list查询所有的信息
     */
    List <Leave> findAllByIdIn(List <Integer> ids);

}
